package com.grant.code.pojo;

import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

@Data
public class User implements Serializable {
    private Integer userId;       //用户id
    // 直接返回userName字段
    @Getter
    private String userName;      //用户名称
    private String userPassword;  //用户密码
    private String userRole;      //用户角色
    private String userStatus;    //用户状态
    private String userHiredate;  //入职时间
    private String userDeparturedate;//离职时间
    private String userAvatar; //头像

    private Integer counts;

    public User(String username, String password) {
        this.userName = username;
        this.userPassword = password;
    }

    public User() {

    }

    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", passWord='" + userPassword + '\'' +
                ", userRole='" + userRole + '\'' +
                ", userStatus='" + userStatus + '\'' +
                ", userHiredate='" + userHiredate + '\'' +
                ", userDeparturedate='" + userDeparturedate + '\'' +
                '}';
    }


}